package com.geekaca.oop.work1;

public class Teacher {
    public String name;
    public char sex;

    public Teacher(String name, char sex) {
        this.name = name;
        this.sex =sex;
    }

    public Paper setPaper(String paperName) {
//        System.out.println("老师出题...");
        Paper paper = new Paper(paperName);
//        paper.name = paperName;
        System.out.println(this.sex + "老师" + this.name + "出了" + paperName + "试卷");
        return paper;
    }

    public void checkPaper(Paper paper, Student student) {
        System.out.println(this.name + "老师批改了试卷," + "学生" + student.name + "的" + paper.name + "成绩为: " + paper.score);

    }
}
